package com.shenhua.kunpeng.utils;

public class TenantIdContextHolder {
    private static final ThreadLocal<Long> Tenant_ID_HOLDER = new ThreadLocal<>();
    public static void set(Long key){
        Tenant_ID_HOLDER.set(key);
    }

    public static Long get(){
        Long key = Tenant_ID_HOLDER.get();
        return key;
    }

    public static void remove(){
        Tenant_ID_HOLDER.remove();
    }
}
